<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>新增辅助物料--员工类别</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/baseset/moneykind_input.css">
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/public.js"></script>
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/validate.js"></script>

		<script type="text/javascript">
			function validate(){
				var candiateCategoryCode = document.getElementById("candiateCategoryCode");
				var candiateCategoryName = document.getElementById("candiateCategoryName");
				
				if (!isNotNull(candiateCategoryCode,'代码'))
					return false;
				if (!(f_check_NumOrLett(candiateCategoryCode,'代码')&&f_check_ZhOrNumOrLett(candiateCategoryCode,'代码')))
					return false;
				if (!f_check_NumLength(candiateCategoryCode,'代码'))
					return false;
				if (!isNotNull(candiateCategoryName,'名称'))
					return false;
				if (!f_check_ZhOrNumOrLett(candiateCategoryName,'名称'))
					return false;
				if (!f_check_passwordLength(candiateCategoryName,'名称',1,25))
					return false;
			}
		</script>
	</head>

	<body>
		<div align="center" id="info_all" style="width: 300px;">
			<div id="info_top">
				辅助物料--员工类别新增
			</div>
			<div style="padding: 4px; width: 200px; margin-top: 6px;">
				<s:form action="addCandiateCategory.action" method="post"
					theme="simple" onsubmit="return validate()">
					<table
						style="margin-top: 10px; background: #fbfbfb; color: #403040;"
						align="center">
						<tr>
							<td width="60px">
								代码
							</td>
							<td>
								<s:hidden name="candiateCategory.candiateCategoryId"
									id="candiateCategoryId"></s:hidden>
								<s:textfield name="candiateCategory.candiateCategoryCode"
									id="candiateCategoryCode" size="15"></s:textfield>
							</td>
						</tr>
						<tr>
							<td width="60px">
								名称
							</td>
							<td>
								<s:textfield name="candiateCategory.candiateCategoryName"
									id="candiateCategoryName" size="15"></s:textfield>
							</td>
						</tr>
			</table>
			<div id="accountbtm_btn">
				<input type="submit" value="保存" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize"/>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" value="返回" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" onclick="javascript:history.back()"/>
			</div>
				</s:form>
			</div>
		</div>
	</body>
</html>